package me.youline.dataServer.controller.dto;

import java.io.Serializable;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

public class UserAuthenticationTokenDTO implements Serializable{

	private static final long serialVersionUID = -9133635231051750566L;
	
	@Pattern(regexp="1[34578]\\d{9}$")
	private String userName;
	
	@Size(max=20,min=6)
	private String password;
	
	private String deviceToken;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDeviceToken() {
		return deviceToken;
	}

	public void setDeviceToken(String deviceToken) {
		this.deviceToken = deviceToken;
	}
	
}
